package cn.cvs.dao;

import cn.cvs.entity.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageRecordMapper {
    List<StorageRecord> selectList(@Param("goodsName")String goodsName,@Param("supplierId")Integer supplierId,
                                   @Param("payStatus")Integer payStatus,
                                   @Param("pageBegin")Integer pageBegin,
                                   @Param("pageSize") Integer pageSize);
    int selectCount(@Param("goodsName") String goodsName,
                    @Param("supplierId") Integer supplierId,
                    @Param("payStatus") Integer payStatus);
    StorageRecord selectById(@Param("id")Integer id);
    int add(StorageRecord storageRecord);
    int update(StorageRecord storageRecord);
    int deleteById(@Param("id") Integer id);
    int selectCountBySupplierId(@Param("supplierId") Integer supplierId);
    int deleteBySupplierId(@Param("supplierId") Integer supplierId);
}
